package com.cyh.aop;

import org.aspectj.lang.ProceedingJoinPoint;

public class MyAspect {
    public void before() {
        System.out.println("前置增强.....");
    }

    public void afterReturning() {
        System.out.println("后置增强.....");
    }

    public Object around(ProceedingJoinPoint pjp) throws Throwable {
        System.out.println("环绕前增强");
        Object processs = pjp.proceed();
        System.out.println("环绕后增强");
        return pjp;
    }
}
